<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <b>显示普通的文本数据: ${name}</b><br>
    <b>显示Student对象的数据数据:</b><br>
        姓名: ${stu.name}<br>
        年龄: ${stu.age}<br>
    <br>
<table>
    <tr>
        <td>id</td>
        <td>name</td>
        <td>age</td>
        <td>money</td>
    </tr>

    <#list students as student>
        <#if student.name == '小红'>
            <tr style="color: red">
                <td>${student_index + 1}</td>
                <td>${student.name}</td>
                <td>${student.age}</td>
                <td>${student.money}</td>
            </tr>
        <#else >
            <tr>
                <td>${student_index + 1}</td>
                <td>${student.name}</td>
                <td>${student.age}</td>
                <td>${student.money}</td>
            </tr>
        </#if>

    </#list>
</table>

<br>
<b>一个一个的遍历map的数据</b>
stu的name属性: ${data['stu'].name} <br>
stu1的age属性: ${data.stu1.age}<br>
<b>通过list遍历map集合</b>
<#list data?keys as key>
    ${key} -> ${data[key].name} -> ${data[key].age} -> ${data[key].money}<br>
</#list>
<br>

<#if age??>
    ${age}
</#if>
    <br>
${age!18}
<br>
显示students集合的大小: ${students?size}<br>
显示日期的年月日: ${today?date}<br>
显示日期的时分秒: ${today?time}<br>
显示日期的年月日和时分秒: ${today?datetime}<br>
自定义日期的格式: ${today?string("yyyy-MM-dd")}<br>

${money?c}
</body>
</html>